package com.example.dc.mapper;


import com.example.dc.domain.HealthScore;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Mapper
public interface ScoreMapper {

    List<HealthScore> getAllQuestion(@Param("userId") Integer userId, @Param("startTime") String startTime, @Param("endTime") String endTime, @Param("type") Integer type, @Param("orderBy") Integer orderBy);

    HealthScore getHealthById(@Param("id") Integer id);

    Double sumScore(@Param("userId") Integer userId);

    Map<String,Object> classifyScore(@Param("userId") Integer userId);//报错不管


}
